<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .header{
            margin: 10px;
            display: flex;
            align-items: center;
        }
        .header input{
            flex: 1;
            height: 40px;
            border: none;
            background: rgb(209, 207, 207);
            outline: none;
            border-radius: 20px;
            padding-left: 20px;
        }
        .header span{
            width: 60px;
            color: rgb(17, 122, 213);
            font-size: 24px;
            text-align: center;
        }
        h3{
            margin: 10px;
        }
        .search span{
            display: inline-block;
            margin: 10px;
            padding: 3px;
            border-radius: 4px;
            background: rgb(209, 207, 207);
        }
        .find span{
            display: inline-block;
            margin: 6px;
            padding: 5px;
            border-radius: 4px;
            background: rgb(209, 207, 207);
        }
    </style>
</head>
<body>
    <div id="appone">
        <div class="header">
            <input type="text" placeholder="搜索商家、商品名称" v-model="searchText">
            <span @click="search">搜索</span>
        </div>
        <div class="search">
            <h3>历史搜索</h3>
            <span v-for="(item,index) in arrone">{{item}}</span>
        </div>
    </div>
    <div id="app">
        <div class="find">
            <h3>搜索发现</h3>
            <span v-for="(item,index) in arr">{{item}}</span>
        </div>
    </div>
    <script src="vue.js"></script>
    <script src="历史搜索.js"></script>
    <script src="搜索发现.js"></script>
</body>
</html>